/**
 * Copyright (c) 2024,  科泰集团教研团队
 * 版权所有，请勿侵权
 */
package com.ktjiaoyu.mapper;
import com.ktjiaoyu.entity.SysRole;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 *
 * @author 科泰集团教研团队
 * @packageName com.ktjiaoyu
 * @fileName SysRole.java
 * @createTime 2024/10/22 09:37:00
 * @lastModify 2024/10/22 09:37:00
 * @version 1.0.0
 */
public interface SysRoleMapper{
	public List<SysRole> getPage(@Param("entity") SysRole entity, @Param("offset") Integer offset, @Param("pageSize") Integer pageSize);
	public Long count(@Param("entity") SysRole entity);
	public Long countRoleUsers(Long id);
	public List<SysRole> getAll();
	public SysRole getById(Long id);
	public int insert(SysRole entity) throws Exception;
	public int update(SysRole entity) throws Exception;
	public int delete(Long id) throws Exception;

	SysRole getByCode(String code);
}
